package com.karson.service.service;

import com.karson.common.model.TrackInfo;
import com.karson.common.request.FileRequest;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ISimilarityService {
    Boolean uploadExplain(Integer albumId, List<FileRequest> files) throws Exception;
    //日语分词
    List<String> tokenizeJapanese(String text) throws IOException;
    //清除后缀
    String cleanFileName(String fileName);
    //统计词频
    Map<CharSequence, Integer> getFreq(List<String> tokens);
    //计算余弦相似度
    Double calcCosine (List<String> tokens1, List<String> tokens2);
    // 聚合文件名
    Map<TrackInfo, List<FileRequest>> aggregateMultiRound(Map<TrackInfo, List<FileRequest>> groupMap, List<FileRequest> fileList, double initThreshold, double minThreshold, double step) throws Exception;
}
